@import "./variable.less";

.wl-wrapper{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    .wl-inner{
        width: 100%;
        height: 100%;
        &.wl-inner-background{
            background-image: url(../../public/images/lottery-bg.png);
            .bg-cover();
        }
        &.wl-inner-particle{
            position: absolute;
            z-index: @zx01;
            left: 0;
            top: 0;
        }
        &.wl-inner-content{
            position: absolute;
            z-index: @zx09;
            left: 0;
            top: 0;
        }
        .wl-box{
            width: 100%;
            height: 100%;
            position: relative;
        }
    }
}

.prize-card-wrapper {
    width: 16vh;
    height: 16vh;
    cursor: default;
    opacity: 0;
    .prize-card-inner {
        width: 100%;
        height: 100%;
        border: 4px solid @cr-white;
        background: @cr-white-a30;
        border-radius: 16px;
        .prize-card-front-side, .prize-card-back-side{
            width: 100%;
            height: 0;
            opacity: 0;
            border-radius: 12px;
            transition: all 0.3s ease;
            transform: scale(1);
            &:hover{
                cursor: pointer;
                transform: scale(1.05);
            }
        }
        .prize-card-front-side{
            height: 100%;
            opacity: 1;
            background-color: @cr-black-v1;
            background-image: url(../../public/images/gift-unknown.png);
            background-size: 100%;
            background-position: center;
            background-repeat: no-repeat;
            .fh1();
        }
        .prize-card-back-side{
            .fv1();
            .center{
                width: 100%;
                flex: 1;
                .fh1();
                .number{
                    font-size: 10vh;
                    font-weight: bold;
                    color: @cr-white;
                    text-align: center;
                    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
                    font-family: "DINPro";
                }
            }
            .crown{
                position: absolute;
                left: calc(50% - 5vh);
                top: -5vh;
                z-index: @zx01;
                width: 10vh;
                height: 8vh;
                background-image: url(../../public/images/crown.png);
                .bg-cover();
            }
        }
    }
    &.visible{
        opacity: 1;
    }
    &.prize{
        .prize-card-inner{
            .prize-card-front-side{
                background-color: transparent;
            }
        }
    }
    &.flip{
        opacity: 1;
        .prize-card-inner{
            position: relative;
            .prize-card-front-side{
                height: 0;
                opacity: 0;
            }
            .prize-card-back-side{
                height: 100%;
                background-color: transparent;
                opacity: 1;
            }
        }
    }
}





